package org.example.web;


import com.example.fanqie.entity.User;
import com.example.fanqie.mapper.UserMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/user")
public class userDao {

    @Resource
    private UserMapper userMapper;


    @RequestMapping("selectUser")
    public List<User> selectUser(){
        List<User> user = userMapper.selectuser(0);
        System.out.println(user);

        return user;
    }




}
